package org.jeecg.modules.golf.plan.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.golf.plan.entity.Plan;
import org.jeecg.modules.golf.plan.entity.PlanTypeMapping;
import org.jeecg.modules.golf.question.entity.QuestionTypeMapping;
import org.jeecg.modules.golf.tag.entity.TagMapping;

import java.util.Collection;
import java.util.List;

/**
 * @Description: 方案
 * @Author: jeecg-boot
 * @Date:   2020-10-20
 * @Version: V1.0
 */
public interface  IPlanService extends IService<Plan> {




	/**
	 * 添加一对多
	 *
	 */
	 void saveMain(Plan plan, List<QuestionTypeMapping> questionTypeMappingList, List<PlanTypeMapping> planTypeMappingList, List<TagMapping> tagMappingList) ;

	/**
	 * 修改一对多
	 *
	 */
	 void updateMain(Plan plan,List<QuestionTypeMapping> questionTypeMappingList,List<PlanTypeMapping> planTypeMappingList, List<TagMapping> tagMappingList);

	/**
	 * 删除一对多
	 */
	 void delMain (Long id);

	/**
	 * 批量删除一对多
	 */
	 void delBatchMain (Collection<Long> idList);

}
